package LibraryManagementSystem.impl;

import LibraryManagementSystem.IOperation;
import LibraryManagementSystem.book.Bookcase;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2022/10/22 8:18
 */
public class FindOperation implements IOperation {
    @Override
    public void work(Bookcase bookcase) {
        System.out.println("您正在进行书籍查找操作");
        System.out.println("请输入要查找的书籍名称:");
        String bookName = scanner.next();
        if (bookcase.findBooks(bookName)){
            System.out.println("图书馆中有该书~");
        }else {
            System.out.println("图书馆中还没有该书哦~管理员正在上架~");
        }
    }
}
